-define(USERS, users).
-define(USERS_INFO, list_to_atom(atom_to_list(node()) ++ "-users_info")).
-define(BLOB, list_to_atom(atom_to_list(node()) ++ "-blob")).
-define(MAIL, list_to_atom(atom_to_list(node()) ++ "-mail")).

-define(MAX_LINES_PER_CHUNK,15000).
-define(MAX_LINES_NO_BLOB, 200).

-record(mail, {id = "",                    % Message ID
	       node = "nonode@nohost",     % Message node
	       queue = incoming,           % queue name
	       time = {},                  % Received time
	       myhostname = "localhost",   % With this hostname we receive mail
	       sanity = 0,                 % Sanity of the message
	       from_ip = {},               % Sender IP address
	       from_name = "unknown",      % Sender domain name
	       mail_from = [],             % MAIL FROM:
	       rcpt_to = [],               % RCPT TO:
	       hello = {},                 % Hello source
	       kludges = [],               % Message kludges
	       attr = [],                  % Additional attributes
	       buffsize = 0,               % Size of the message body
	       lines = 0,                  % Used lines in current chunk
	       chunks = 0,                 % Total chunks
	       buffer = []
	       }).


-record(blob, {id = {"",0},
	       buffer = []            % In first chunk - set of attributes
	      }).

